package com.zxm.sunshineaiary.info;

import com.zxm.sunshineaiary.util.CharsUtil;

/**
 * 用户选择日期的资料
 * 
 * @author Administrator
 * 
 */
public class DateInfo {

	private static DateInfo Instance = null;

	public String year = null;
	public String month = null;
	public String day = null;

	public static DateInfo getInstance() {
		if (null == Instance) {
			Instance = new DateInfo();
		}
		return Instance;
	}

	public String getDate() {
		return CharsUtil.stringToDate(Integer.parseInt(year), Integer
				.parseInt(month), Integer.parseInt(day));
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}


	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}
}
